<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link href="{SKIN_PATH}modal.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>

<script type="text/javascript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="main">
    	
        {template 'menu.html','member'} 
        
        <div class="mod"> 
            <div class="body">
                
                <form action="?module=member&action=upgrade" method="post" name="myform" id="myform">
                    <table class="table table-bordered">
                      <tr>
                        <th width="13%">会员级别</th>
                        <th width="50%">会员特权</th>
                        <th width="20%">服务期限</th>
                        <th width="12%">会员资费</th>
                        <th width="5%">操作</th>
                      </tr>
                {loop $data $n $r}
                      <tr>
                        <td>{$r[name]}</td>
                        <td>{str_cut(strip_tags($r[description]), 170)} <a href="?module=member&action=upgrade_view&groupid={$r[groupid]}" style="color:red">了解更多...</a></td>
                        <td>
                        {if $r['iscontinue']}
                        <span style="color:{if $r['isexpired']}gray{else}blue{/if}">{$r['startdate']} ~ {$r['enddate']}</span>
                        {/if}</td>
                        <td style="color:orange;font-weight:bold;text-align:left">{if $r['price_y']>0}{$r[price_y]}元/年<br />{/if}{if $r['price_m']>0}{$r[price_m]}元/月<br />{/if}{if $r['price_d']>0}{$r[price_d]}元/天{/if}</td>
                        <td>
                        {if $r[disabled] || !$r[allowupgrade]}
                            <font color="#cccccc">{if $r['iscontinue']}续费{else}升级{/if}</font>
                        {else}
                            {if $r['iscontinue']}
                            <a href="?module=member&action=upgrade_continue&groupid={$r[groupid]}" style="color:green">续费</a>
                            {else}
                            <a href="?module=member&action=upgrade_pay&groupid={$r[groupid]}" style="color:red">升级</a>
                            {/if}
                        {/if}
                        </td>
                      </tr>
                {/loop}
                    </table>
                  </form>
            </div>
        </div> 
    </div>
    
    <div class="aside">
    	{template "left.html", "member"}
    </div>
</div>


{template "footer.html"}